FROM moxm/java:1.8-full



ARG JAR_FILE=./houxin-admin-biz.jar

COPY ${JAR_FILE} app.jar

EXPOSE 4000

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

CMD sleep 30; echo -e  "192.168.1.5    houxin-mysql\n192.168.1.6    houxin-redis\n192.168.1.7    houxin-register\n192.168.1.8    houxin-gateway\n192.168.1.9    houxin-auth\n192.168.1.10    houxin-adnmin "  >> /etc/hosts ;   java -jar app.jar $JAVA_OPTS ; cat /etc/hosts
